/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Pinjam;

import java.util.ArrayList;


public class pinjam {
    private String judulBuku,NIM;
    private int makspinjam=7;
    private double denda;
    private int kuotaBuku;
    private int size;
    ArrayList<pinjam> pnjm = new ArrayList<pinjam>();


//   public void pinjam (pinjam pnjm){
//       for (int i = 0; i < pnjm.size(); i++) {
//            if (pnjm.getJudulBuku().compareTo(NIM) == 0) {
//                if (this.cekDenda()){
//
////    public double totDenda() {
////        double total = 0;
////        for (int i = 0; i < pnjm.size(); i++) {
////            total = total + pnjm.get(i).denda();
////        }
////        return total;
////    }
//
//    public boolean cekDenda() {
//        if (this.totDenda() > 1000000) {
//            return false;
//        }
//        return true;
//    }
// public boolean cekJumlah() {
//        if (pinjam.size() <= makspinjam) {
//            return true;
//        }
//        return false;
//    }



    public String getNIM() {
        return NIM;
    }

    public void setNIM(String NIM) {
        this.NIM = NIM;
    }

    public String getJudulBuku() {
        return judulBuku;
    }

    public void setJudulBuku(String judulBuku) {
        this.judulBuku = judulBuku;
    }

    public int getKuotaBuku() {
        return kuotaBuku;
    }

    public void setKuotaBuku(int kuotaBuku) {
        this.kuotaBuku = kuotaBuku;
    }

    private int size() {
        throw new UnsupportedOperationException("Not yet implemented");
    }


}
